package Power_Asisst.main;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Handler;
import android.util.Log;
import android.widget.TextView;

public class TCP_Services extends Activity {

	Untils SVUntils= new Untils();
	String SERVERIP=SVUntils.getLocalIPAddress();
	public Handler handler = new Handler();

	private ServerSocket serverSocket;
	public static int SERVERPORT=8080;
	public  String result="None";
	TextView serverStatus = (TextView) findViewById(R.id.textViewReceive);
	public void testShow(String input)
	{
		String[] result=input.split(",");
		new AlertDialog.Builder( this )
	   	.setTitle( "Title" )
	   	.setMessage( "Đã Kết Nối Với Client"+result[0]+" IP:"+result[1] )
	   	.setNegativeButton( "Accept", new DialogInterface.OnClickListener() {
	   		public void onClick(DialogInterface dialog, int which) {
	   			Log.d( "AlertDialog", "Negative" );
	   		}
	   	} )
	   	.show();
	}

	
	
	    	  
	    

}

